import 'package:flutter_hx/base/list_view_get_controller.dart';
import 'package:flutter_hx/model/result.dart';
import 'package:flutter_hx/network/HttpGo.dart';
import 'package:get/get.dart';

class MeTeamLogic extends GetxController with ListViewGetControllerMixin{
  final team=RxMap<String,dynamic>({});


  @override
  void onInit() {
    super.onInit();
    loadTeamInfo();
  }

  Future loadTeamInfo()async{
    final res=await HttpGo.instance.get("/team");
    res.ifSuccess((data) => team.value=data);
  }

  @override
  Future<Result<List>> loadData()=>HttpGo.instance.get("/team/members",params: queryMap);

}
